<?php

namespace Common\Model;

/**
 * ProvinceModel.class实例模型
 * 
 * @author songanwei
 * @date 2016-1-5
 */
class ProvinceModel extends BaseModel {

    protected $trueTableName = 'bk_province';

    /**
     * 返回所有省份
     * @return type
     */
    public function getAll() {
        return $this->select();
    }

     /**
     * 返回所有省份
     * @return type
     */
    public function getAllByCountry($country) {
    	$option['country_id'] = $country;
        return $this->where($option)->select();
    }

}
